﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Tables.Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>扩展表管理</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
.pfxs
{
	width:50px; 
	background-color:#f4fbff; 
	border:solid 1px #ddd;
}
.pfxu
{
	width:50px; 
	background-color:#f4fbff; 
	border:solid 1px #f4fbff;
}
</style>
<script language="javascript">
function SwapColor(flag)
{
    document.getElementById("iptpostfix").className=(flag?"pfxs":"pfxu");
}
window.onload = function () {
    var menu_m_title = window.parent.menu["core"]["text"];
    var menu_m_sub_title = window.parent.menu["core"]["children"]["tables_list"]["text"];
    document.getElementById("menu_main_title").innerHTML = menu_m_title + " > " + menu_m_sub_title;
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label id="menu_main_title"></label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <%if (!PlugNT.Custom.WebConfig.IsAccess){%>
                   <a href='./EditTable.aspx?t=add'>添加扩展表</a>
                <%}%>
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px; "></span>
</div>


<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    
    <form id="Form1" runat="server">
      <div style="color:#ffaa25;"> (所有扩展表管理：生成目录为生成静态页的根目录，请妥善修改！)</div>
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
          
        <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
        <tr>
          <td width="28" nowrap bgcolor="#DDE9FF"><span class="line">编号</span></td>
          <td width="90" align="center" nowrap bgcolor="#DDE9FF"><span class="line">分表名称</span></td>
          <td align="center" bgcolor="#DDE9FF"><span class="line">生成目录</span></td>
          <td width="90" align="center" bgcolor="#DDE9FF"><span class="line">分表后缀名</span></td>
          <td width="90"  align="center" nowrap bgcolor="#DDE9FF"><span class="line">是否为当前表</span></td>
          <td width="200" align="center" nowrap bgcolor="#DDE9FF">操作</td>
        </tr>
        <asp:Repeater ID="Repeater_admin" runat="server">
          <ItemTemplate>
            <tr align="center">
              <td  nowrap="nowrap" bgcolor="#F4FBFF"><asp:Label ID="Label_id" runat="server" Text='<%#Eval("id") %>'></asp:Label>
              </td>
              <td align="center"  nowrap="nowrap"  bgcolor="#F4FBFF"><%#Eval("description")%></td>
              <td  bgcolor="#F4FBFF" title='<%#Eval("dicpath") %>'> <%#Eval("dicpath")%> </td>              
              <td  bgcolor="#F4FBFF" title='<%#Eval("postfix") %>'> <%#Eval("postfix")%> </td>

              <td align="center"  nowrap="nowrap"  bgcolor="#F4FBFF"><b><%#(PlugNT.Custom.WebConfig.TablePostfix.ToString() != Eval("postfix").ToString()) ? "X" : "√"%></b></td>
              <td width="200" align="center" nowrap="nowrap" bgcolor="#F4FBFF">
                <%if (!PlugNT.Custom.WebConfig.IsAccess){%>
                    <a href='../Field/Admin.aspx?p=<%#Eval("postfix") %>' title='扩展表字段管理'>字段</a> | 
                    <a href='EditTable.aspx?t=current&id=<%#Eval("id") %>' title='设置为当前表'>当前</a> | 
                    <a href='EditTable.aspx?t=edit&id=<%#Eval("id") %>' title='修改扩展表'>修改</a> 
                    <%#(Eval("postfix").ToString() != "") ? " | <a href=\"EditTable.aspx?t=delete&id=" + Eval("id").ToString() + "\" onclick=\"return window.confirm('确定删除该项吗?');\" title=\"删除扩展表\">删除</a>" : ""%>
                    
                <%}else{%>
                    无操作
                <%}%>
              </td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
        </table>
       </td>
      </tr>
     </table>
    </form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>